Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |insert

json/value::|insert


Usage

|insert(object, key, value)

Parameters

↳ object: Json (json::Json)
↳ key: string
↳ value: Json (json::Json)

Return

↴ Json


Return object with key set to value, replacing the value it had.

If object is not a JSON object, it is returned unchanged.